package com.market.plus.controller.mapper;

import java.util.List;

import org.springframework.validation.BindingResult;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.market.plus.core.dto.CommentDto;
import com.market.plus.core.dto.NewsDto;
import com.market.plus.core.dto.ParticipantDto;
import com.market.plus.core.dto.RelationshipDto;
import com.market.plus.core.dto.TribeDto;

public interface JsonMapping {

   JSONObject convert(ParticipantDto participantDto, NewsDto introduction, boolean isGuest);

   JSONObject convertFirtsTribeNews(TribeDto tribeDto);

   JSONArray convertNews(List<NewsDto> newsDtos);

   JSONArray convertComments(List<CommentDto> comments);

   JSONObject convertRelationship(List<ParticipantDto> participants, List<RelationshipDto> relationships);

   JSONObject requestFriendStatus();

   JSONObject acceptFriendStatus();

   JSONObject denyFriendStatus();

   JSONObject lockedFriendStatus();

   JSONObject unlockedFriendStatus();

   JSONObject addFriendToRelationshipStatus();

   JSONObject removeFriendFromRelationshipStatus();

   JSONObject removeRelationshipStatus();

   JSONObject addRelationshipStatus(RelationshipDto relationship, BindingResult result);

   JSONObject saveNewsStatus(String guid);
}
